<?php /* Template_ 2.2.4 2011/05/24 13:34:50 E:\php\www\sagapo\_DATA\template_\default\admin\member\modify.html 000003553 */ ?>
<h2 class="member">회원 관리</h2>
<section class="default">
	<script>
		$(function() {		
			$("#member_modify").validate({
				rules: {
					 mem_name : "required"
					,mem_email : {required:true, email:true}
				}
			});
			
			$("#mem_sign").cleditor()[0].focus();
			
			$("input:radio[name='mem_sendemail'][value='<?php echo $TPL_VAR["result"]->m_sendemail?>']").attr("checked","checked");
			$("input:radio[name='mem_auth'][value='<?php echo $TPL_VAR["result"]->m_auth?>']").attr("checked","checked");
			
			$("button.password").click(function() {
				ajaxLoad('<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/member/passwordChange', "seq=<?php echo $TPL_VAR["result"]->m_seq?>", '비밀번호 수정', 400);	
			})
		});
	</script>
	<form name="member_modify" id="member_modify" action="<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/member/doModify" method="post">
		<table class="table">
			<caption>
				회원 추가
			</caption>
			<colgroup>
				<col class="t_add" />
				<col />
			</colgroup>
			<tbody>
				<tr>
					<th scope="row" class="txt-right br">아이디</th>
					<td>
						<?php echo $TPL_VAR["result"]->m_id?>

						<input type="hidden" name="mem_seq" value="<?php echo $TPL_VAR["result"]->m_seq?>" />
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br">비밀번호 변경</th>
					<td>
						<button type="button" class="password">비밀번호변경</button>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt-right br"><label for="mem_name">이름</label></th>
					<td>
						<input type="text" name="mem_name" id="mem_name" placeholder="이름" value="<?php echo $TPL_VAR["result"]->m_name?>" />
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br"><label for="mem_email">이메일</label></th>
					<td>
						<input type="email" name="mem_email" id="mem_email" placeholder="email" class="width_60" value="<?php echo $TPL_VAR["result"]->m_email?>" />
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt-right br"><label for="mem_sendemail_0">이메일 수신</label></th>
					<td>
						<input type="radio" name="mem_sendemail" id="mem_sendemail_0" value="1" /><label for="mem_sendemail_0"> 수신</label>
						<input type="radio" name="mem_sendemail" id="mem_sendemail_1" value="0" /><label for="mem_sendemail_1"> 미수신</label>
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br"><label for="mem_auth_0">인증</label></th>
					<td>
						<input type="radio" name="mem_auth" id="mem_auth_0" value="1" /><label for="mem_auth_0"> 인증</label>
						<input type="radio" name="mem_auth" id="mem_auth_1" value="0" /><label for="mem_auth_1"> 미인증</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt-right br"><label for="mem_sign">서명</label></th>
					<td>
						<textarea name="mem_sign" id="mem_sign" class="width_90" placeholder="서명"><?php echo $TPL_VAR["result"]->m_sign?></textarea>
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br">사진</th>
					<td>
						&nbsp; 사진은 나중에
					</td>
				</tr>
			</tbody>
		</table>
		
		<div class="button_area">
			<button type="submit">전송</button>
			<button type="button" class="cancel" onclick="back()">뒤로</button>
		</div>
	</form>
</section>